package com.ftu.study.pattern.observer;

import com.ftu.study.pattern.observer.jdk.CurrentConditionsDisplay;
import com.ftu.study.pattern.observer.jdk.WeatherData;

public class WeatherStationUseJdk {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        
        CurrentConditionsDisplay currentDisplay = new CurrentConditionsDisplay(weatherData);
        
        weatherData.setMeasurements(80, 65, 30.4f);
        weatherData.setMeasurements(82, 70, 29.4f);
        weatherData.setMeasurements(78, 90, 29.4f);
        
    }
}
